<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
                "http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<head>
  <title>Description of remove_group</title>
  <meta name="keywords" content="remove_group">
  <meta name="description" content="Removes an entire group's worth of objects permanently">
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  <meta name="generator" content="m2html &copy; 2003 Guillaume Flandin">
  <meta name="robots" content="index, follow">
  <link type="text/css" rel="stylesheet" href="../m2html.css">
</head>
<body>
<a name="_top"></a>
<!-- menu.html . -->
<h1>remove_group
</h1>

<h2><a name="_name"></a>PURPOSE <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
<div class="box"><strong>Removes an entire group's worth of objects permanently</strong></div>

<h2><a name="_synopsis"></a>SYNOPSIS <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
<div class="box"><strong>function [subj] = remove_group(subj,objtype,groupname) </strong></div>

<h2><a name="_description"></a>DESCRIPTION <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
<div class="fragment"><pre class="comment"> Removes an entire group's worth of objects permanently

 [SUBJ] = REMOVE_GROUP(SUBJ,OBJTYPE,GROUPNAME)

 Will delete the objects from the SUBJ cell array - NOT RECOMMENDED</pre></div>

<!-- crossreference -->
<h2><a name="_cross"></a>CROSS-REFERENCE INFORMATION <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
This function calls:
<ul style="list-style-image:url(../matlabicon.gif)">
<li><a href="find_group.html" class="code" title="function [matches] = find_group(subj,objtype,groupname)">find_group</a>	Returns a list of names of objects from this group</li><li><a href="remove_object.html" class="code" title="function [subj] = remove_object(subj,objtype,objname,varargin)">remove_object</a>	This removes an object permanently</li></ul>
This function is called by:
<ul style="list-style-image:url(../matlabicon.gif)">
</ul>
<!-- crossreference -->


<h2><a name="_source"></a>SOURCE CODE <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
<div class="fragment"><pre>0001 <a name="_sub0" href="#_subfunctions" class="code">function [subj] = remove_group(subj,objtype,groupname)</a>
0002 
0003 <span class="comment">% Removes an entire group's worth of objects permanently</span>
0004 <span class="comment">%</span>
0005 <span class="comment">% [SUBJ] = REMOVE_GROUP(SUBJ,OBJTYPE,GROUPNAME)</span>
0006 <span class="comment">%</span>
0007 <span class="comment">% Will delete the objects from the SUBJ cell array - NOT RECOMMENDED</span>
0008 
0009 <span class="keyword">if</span> ~nargout
0010   error(<span class="string">'Don''t forget to catch the subj structure that gets returned'</span>);
0011 <span class="keyword">end</span>
0012 
0013 <span class="keyword">if</span> nargin~=3
0014   error(<span class="string">'I think you''ve forgotten to feed in all your arguments'</span>);
0015 <span class="keyword">end</span>
0016 
0017 members = <a href="find_group.html" class="code" title="function [matches] = find_group(subj,objtype,groupname)">find_group</a>(subj,objtype,groupname);
0018 
0019 <span class="keyword">for</span> m=1:length(members)
0020   subj = <a href="remove_object.html" class="code" title="function [subj] = remove_object(subj,objtype,objname,varargin)">remove_object</a>(subj,objtype,members{m});
0021 <span class="keyword">end</span>
0022 
0023</pre></div>
<hr><address>Generated on Wed 31-Aug-2005 15:27:57 by <strong><a href="http://www.artefact.tk/software/matlab/m2html/" target="_parent">m2html</a></strong> &copy; 2003</address>
</body>
</html>